var test1 = new Vue({
    el:"#test1",
    data:{
        health:100,
        ended:false,
    },
    methods:{
        punch:function () {
            this.health -= 10
            if(this.health <= 0){
                this.ended = true
            }
        },
        restart:function () {
            this.health = 100
            this.ended = false
        }
    }
})